package com.webcash.CNBoard.Service;

import java.util.List;

import com.webcash.CNBoard.Model.Board;
import com.webcash.CNBoard.Model.Department;
import com.webcash.CNBoard.Model.DeptBoard;
import com.webcash.CNBoard.Model.DeptComment;

public interface DepartmentService {
	List<Department> getDepartmentList();
	Department getDepartmentByDeptNo(int deptNo);
	List<DeptBoard> getDepartmentBoardListByDepartmentNo(int deptNo, int pageNum);
	DeptBoard getDepartmentBoardContentsByBoardNo(int deptBoardNo);
	void addDeptBoardByEmpNo(String id, Board board, int deptNo);
	int getDepartmentBoardCountByDeptNo(int deptNo);
	DeptBoard getDepartmentBoardByDeptNoAndDeptBoardNo(int deptNo,
			int deptBoardNo);
	void updateDeptBoardByDeptBoardNo(Board board, int deptBoardNo, int deptNo);
	void deleteDeptBoardByDeptNoAndDeptBoardNo(int deptNo, int deptBoardNo);
	void updateDeptBoardForReadCountByDeptBoardNo(int deptNo, int deptBoardNo);
	void addDeptCommentByBoardNoAndId(int boardNo, String id,
			String commentContents);
	List<DeptComment> getDeptCommentListByBoardNo(int boardNo);
	void insertDepartmentbyDept(Department dept);
}
